Prerequisites
Install mxpy - blockchain interaction
We use mxpy
to interact with the blockchain.
To install mxpy
run:
wget -O mxpy-up.py https://raw.githubusercontent.com/multiversx/mx-sdk-py-cli/main/mxpy-up.py
python3 mxpy-up.py
To check the successful installation:
$ mxpy --version
MultiversX Python CLI (mxpy) 6.1.3
If you encounter any errors, follow the guide here.
Install sc-meta - contract interaction
We use sc-meta
to compile the contracts and to upgrade the dependencies.
To install sc-meta
, simply call:
$ cargo install multiversx-sc-meta
To check for successful installation:
$ sc-meta --version
multiversx-sc-meta 0.45.1
If you encounter any errors, follow the guide here.
Contracts examples
Here is a list of Smart Contract examples. We will use part of them to understand smart contracts on MultiversX.